<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天天互保-付款方式</title>
<meta name="keywords" content="天天互保"> 
<meta name="description" content="天天互保"> 
<meta content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" name="viewport">
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/md5.js"></script>
<link rel="stylesheet" href="__CSS__/style.css">
<link rel="stylesheet" href="__CSS__/index.css">
<link rel="stylesheet" href="__CSS__/admin.css">
<link rel="stylesheet" href="__CSS__/member.css">




<script type="text/javascript">
$(function(){
	//出现浮动层
	$(".ljzf_but").click(function(){
		$(".ftc_wzsf").show();
		});
	//关闭浮动
	$(".close").click(function(){
		$(".ftc_wzsf").hide();
		});
		//数字显示隐藏
		$(".xiaq_tb").click(function(){
		$(".numb_box").slideUp(500);
		});
		$(".mm_box").click(function(){
		$(".numb_box").slideDown(500);
		});
		//----
		var i = 0;
		$(".nub_ggg li a").click(function(){
			i++
			if(i<6){
				$(".mm_box li").eq(i-1).addClass("mmdd");
				}else{
					$(".mm_box li").eq(i-1).addClass("mmdd");

					//window.document.location="cg.html"
			 }
		});


			var code = '';
			$(".nub_ggg li").click(function() {
			codes = $('a', this).text();
			code += codes;
				if(code.length >6) {
				    alert('密码超出6位');
				  }if(code.length == 6) {
				var sum=$(".wxzf_price span").html();
				var uid=$('.user').val();
				var time=$(".fr span").html();
				var m5=	hex_md5(code);
				
				$.post("__URL__/check_pass",{user:uid,pa:m5,sum:sum,time:time}, function (data) {
				if (data==1) {
						alert('成功');
						history.go(-2);
					}else{
					    alert('失败');
						history.go(-1);
					}
				});

			}
			});
			$(".nub_ggg li .del").click(function(){
				if(i>0){
				i--
				$(".mm_box li").eq(i).removeClass("mmdd");
				i==0;
				code=code.substring(0,code.length-1);
			}
			 if(code.length > 6) {
			   alert('密码超出6位');
			}if(code.length == 6) {
				var sum=$(".wxzf_price span").html();
				var uid=$('.user').val();
				var time=$(".fr span").html();
				var m5=	hex_md5(code);

				$.post("__URL__/check_pass",{user:uid,pa:m5,sum:sum,time:time}, function (data) {
					if (data==1) {
						alert('成功');
						history.go(-2);
					}else{
					    alert('失败');
						history.go(-1);
					}
					
				});

			}
			  });
});
</script>
</head>
<body>
<div class="wenx_xx">
  <div class="mz">充值金额</div>
  <div class="wxzf_price" >￥<span>{$sum}</span></div>
</div>
<input type="hidden"  class='user' name="u" value="{$uid}" placeholder="">
<div class="skf_xinf">
  <div class="all_w"> <span class="bt">充值时长</span> <span class="fr"><span>{$time}</span>个月</span> </div>
</div>
<a href="javascript:ajax({$uid});" class="ljzf_but submits">立即支付</a> 

<!--浮动层-->
<div class="ftc_wzsf">
  <div class="srzfmm_box">
		<div class="qsrzfmm_bt"><img src="__IMG__/xx_03.jpg" class="close"><img src="__IMG__/sqhb_s.jpg" class="ttoux"><span>请输入支付密码</span> </div>
		<div class="zfmmxx_shop">
		  <div class="mz">充值金额</div>
		  <div class="wxzf_price">￥{$sum}</div>
		</div>
		<a href="#" class="blank_yh"> 
			<img src="__IMG__/us4_h.png" class="fl"  >
			<span class="fl ml5">余额({$Qm.money})</span> 
			<img src="__IMG__/jftc_09.jpg" class="fr"></a>
		<ul class="mm_box">
		  <li></li>
		  <li></li>
		  <li></li>
		  <li></li>
		  <li></li>
		  <li></li>
		</ul>
  </div>
  <div class="numb_box">
    <div class="xiaq_tb"> <img src="__IMG__/jftc_14.jpg" height="10"> </div>
    <form action="" method="post" accept-charset="utf-8">
      <ul class="nub_ggg">
      <li><a href="javascript:void(0);">1</a></li>
      <li><a href="javascript:void(0);" class="zj_x">2</a></li>
      <li><a href="javascript:void(0);">3</a></li>
      <li><a href="javascript:void(0);">4</a></li>
      <li><a href="javascript:void(0);" class="zj_x">5</a></li>
      <li><a href="javascript:void(0);">6</a></li>
      <li><a href="javascript:void(0);">7</a></li>
      <li><a href="javascript:void(0);" class="zj_x">8</a></li>
      <li><a href="javascript:void(0);">9</a></li>
      <li><span>取消</span></li>
      <li><a href="javascript:void(0);" class="zj_x">0</a></li>
      <li><span class="del"> <img src="__IMG__/jftc_18.jpg"   ></span></li>
    </ul>
    </form>
  </div>
  <div class="hbbj"></div>
</div>

</body>
</html>